package me.xplabs.controller 
{
	import me.xplabs.constant.SceneType;
	import me.xplabs.model.proxy.LoaderMapProxy;
	import me.xplabs.msg.NotificationName;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	/**
	 * ...
	 * @author xiaohan
	 */
	public class SelectRaidCommand extends SimpleCommand 
	{
		
		public function SelectRaidCommand() 
		{
			
		}
		override public function execute(notification:INotification):void 
		{
			if (!facade.hasProxy(LoaderMapProxy.NAME)) facade.registerProxy(new LoaderMapProxy());
			LoaderMapProxy(facade.retrieveProxy(LoaderMapProxy.NAME)).setMapData(int(notification.getBody()));
		}
	}

}